export default class {
  // 服务端状态同步到客户端
  constructor(state) {
    if (state) {
      const keys = Object.keys(state)
      keys.map(k => {
        this[k] = state[k]
      })
    }
  }
}
